Optimal. Leaf size=132 \[ -\frac{\sqrt{2} x^{-n} (e x)^n \cos \left (c+d x^n\right ) \left (a+b \sin \left (c+d x^n\right )\right )^p \left (\frac{a+b \sin \left (c+d x^n\right )}{a+b}\right )^{-p} F_1\left (\frac{1}{2};\frac{1}{2},-p;\frac{3}{2};\frac{1}{2} \left (1-\sin \left (d x^n+c\right )\right ),\frac{b \left (1-\sin \left (d x^n+c\right )\right )}{a+b}\right )}{d e n \sqrt{\sin \left (c+d x^n\right )+1}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.190298, antiderivative size = 132, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.227, Rules used = {3381, 3379, 2665, 139, 138} \[ -\frac{\sqrt{2} x^{-n} (e x)^n \cos \left (c+d x^n\right ) \left (a+b \sin \left (c+d x^n\right )\right )^p \left (\frac{a+b \sin \left (c+d x^n\right )}{a+b}\right )^{-p} F_1\left (\frac{1}{2};\frac{1}{2},-p;\frac{3}{2};\frac{1}{2} \left (1-\sin \left (d x^n+c\right )\right ),\frac{b \left (1-\sin \left (d x^n+c\right )\right )}{a+b}\right )}{d e n \sqrt{\sin \left (c+d x^n\right )+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3381
Rule 3379
Rule 2665
Rule 139
Rule 138
Rubi steps
\begin{align*} \int (e x)^{-1+n} \left (a+b \sin \left (c+d x^n\right )\right )^p \, dx &=\frac{\left (x^{-n} (e x)^n\right ) \int x^{-1+n} \left (a+b \sin \left (c+d x^n\right )\right )^p \, dx}{e}\\ &=\frac{\left (x^{-n} (e x)^n\right ) \operatorname{Subst}\left (\int (a+b \sin (c+d x))^p \, dx,x,x^n\right )}{e n}\\ &=\frac{\left (x^{-n} (e x)^n \cos \left (c+d x^n\right )\right ) \operatorname{Subst}\left (\int \frac{(a+b x)^p}{\sqrt{1-x} \sqrt{1+x}} \, dx,x,\sin \left (c+d x^n\right )\right )}{d e n \sqrt{1-\sin \left (c+d x^n\right )} \sqrt{1+\sin \left (c+d x^n\right )}}\\ &=\frac{\left (x^{-n} (e x)^n \cos \left (c+d x^n\right ) \left (a+b \sin \left (c+d x^n\right )\right )^p \left (-\frac{a+b \sin \left (c+d x^n\right )}{-a-b}\right )^{-p}\right ) \operatorname{Subst}\left (\int \frac{\left (-\frac{a}{-a-b}-\frac{b x}{-a-b}\right )^p}{\sqrt{1-x} \sqrt{1+x}} \, dx,x,\sin \left (c+d x^n\right )\right )}{d e n \sqrt{1-\sin \left (c+d x^n\right )} \sqrt{1+\sin \left (c+d x^n\right )}}\\ &=-\frac{\sqrt{2} x^{-n} (e x)^n F_1\left (\frac{1}{2};\frac{1}{2},-p;\frac{3}{2};\frac{1}{2} \left (1-\sin \left (c+d x^n\right )\right ),\frac{b \left (1-\sin \left (c+d x^n\right )\right )}{a+b}\right ) \cos \left (c+d x^n\right ) \left (a+b \sin \left (c+d x^n\right )\right )^p \left (\frac{a+b \sin \left (c+d x^n\right )}{a+b}\right )^{-p}}{d e n \sqrt{1+\sin \left (c+d x^n\right )}}\\ \end{align*}
Mathematica [A] time = 0.44854, size = 148, normalized size = 1.12 \[ \frac{x^{-n} (e x)^n \sec \left (c+d x^n\right ) \sqrt{-\frac{b \left (\sin \left (c+d x^n\right )-1\right )}{a+b}} \sqrt{\frac{b \left (\sin \left (c+d x^n\right )+1\right )}{b-a}} \left (a+b \sin \left (c+d x^n\right )\right )^{p+1} F_1\left (p+1;\frac{1}{2},\frac{1}{2};p+2;\frac{a+b \sin \left (d x^n+c\right )}{a-b},\frac{a+b \sin \left (d x^n+c\right )}{a+b}\right )}{b d e n (p+1)} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.967, size = 0, normalized size = 0. \begin{align*} \int \left ( ex \right ) ^{-1+n} \left ( a+b\sin \left ( c+d{x}^{n} \right ) \right ) ^{p}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (e x\right )^{n - 1}{\left (b \sin \left (d x^{n} + c\right ) + a\right )}^{p}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\left (e x\right )^{n - 1}{\left (b \sin \left (d x^{n} + c\right ) + a\right )}^{p}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (e x\right )^{n - 1}{\left (b \sin \left (d x^{n} + c\right ) + a\right )}^{p}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]